<template>
  <oauth v-if="loginType ==='oauth'"></oauth>
  <phone :back='back' v-else></phone>
</template>
<script lang="ts" setup>
import { onLoad } from '@dcloudio/uni-app'
import oauth from './components/oauth.vue'
import phone from './components/phone.vue'
onLoad((options: any) => {
  if (options.loginType) {
      back = 2
  }
})
let loginType = ''
let back = 1
// #ifdef MP
  loginType = 'oauth'
// #endif
// #ifndef MP
  loginType = 'phone'
// #endif
</script>